<T:ViewBase x:Class="WPFExcelReport.TEKGIP02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=EKGMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwEKGIP.EKGMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=EKGGIPKRS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwEKGIP.EKGGIPKRS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=EKGGIPLFD:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwEKGIP.EKGGIPLFD}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=EKGGIPPOS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwEKGIP.EKGGIPPOS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=EKGAENZL:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwEKGIP.EKGAENZL}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=EKGAENB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwEKGIP.EKGAENB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=EKGAEND:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwEKGIP.EKGAEND}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=EKGNEUB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwEKGIP.EKGNEUB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=EKGNEUD:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwEKGIP.EKGNEUD}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=EKGARTGR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwEKGIP.EKGARTGR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=EKGMEEH:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwEKGIP.EKGMEEH}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsEKGIP,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwEKGIP}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwEKGIP, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="EKGMANDANT"
                                    Binding="{Binding Path=EKGMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGGIPKRS"
                                    Binding="{Binding Path=EKGGIPKRS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGGIPKRS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGGIPLFD"
                                    Binding="{Binding Path=EKGGIPLFD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGGIPLFD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGGIPPOS"
                                    Binding="{Binding Path=EKGGIPPOS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGGIPPOS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGAENZL"
                                    Binding="{Binding Path=EKGAENZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGAENZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGAENB"
                                    Binding="{Binding Path=EKGAENB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGAENB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGAEND"
                                    Binding="{Binding Path=EKGAEND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGAEND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGNEUB"
                                    Binding="{Binding Path=EKGNEUB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGNEUB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGNEUD"
                                    Binding="{Binding Path=EKGNEUD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGNEUD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGARTGR"
                                    Binding="{Binding Path=EKGARTGR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGARTGR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGMEEH"
                                    Binding="{Binding Path=EKGMEEH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGMEEH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGMEEHGRP"
                                    Binding="{Binding Path=EKGMEEHGRP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGMEEHGRP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGMEEHFKT"
                                    Binding="{Binding Path=EKGMEEHFKT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGMEEHFKT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGBRUTTO"
                                    Binding="{Binding Path=EKGBRUTTO, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGBRUTTO}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGNETTO"
                                    Binding="{Binding Path=EKGNETTO, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGNETTO}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGHANDEL"
                                    Binding="{Binding Path=EKGHANDEL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGHANDEL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGTARA"
                                    Binding="{Binding Path=EKGTARA, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGTARA}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGMETER"
                                    Binding="{Binding Path=EKGMETER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGMETER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGSTUECKE"
                                    Binding="{Binding Path=EKGSTUECKE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGSTUECKE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGPTYP"
                                    Binding="{Binding Path=EKGPTYP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGPTYP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGPANZ"
                                    Binding="{Binding Path=EKGPANZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGPANZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGLIEFNR"
                                    Binding="{Binding Path=EKGLIEFNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGLIEFNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGLIEFSCH"
                                    Binding="{Binding Path=EKGLIEFSCH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGLIEFSCH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGLIEFDAT"
                                    Binding="{Binding Path=EKGLIEFDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGLIEFDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGSTATUS"
                                    Binding="{Binding Path=EKGSTATUS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGSTATUS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGAUFKRS"
                                    Binding="{Binding Path=EKGAUFKRS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGAUFKRS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGAUFLFD"
                                    Binding="{Binding Path=EKGAUFLFD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGAUFLFD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGAUFPOS"
                                    Binding="{Binding Path=EKGAUFPOS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGAUFPOS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGERLKZ"
                                    Binding="{Binding Path=EKGERLKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGERLKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGKUNDNR"
                                    Binding="{Binding Path=EKGKUNDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGKUNDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGWERK"
                                    Binding="{Binding Path=EKGWERK, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGWERK}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGABT"
                                    Binding="{Binding Path=EKGABT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGABT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGWAKZ"
                                    Binding="{Binding Path=EKGWAKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGWAKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGART"
                                    Binding="{Binding Path=EKGART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGVAR"
                                    Binding="{Binding Path=EKGVAR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGVAR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGFARBE"
                                    Binding="{Binding Path=EKGFARBE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGFARBE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGDESS"
                                    Binding="{Binding Path=EKGDESS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGDESS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGCOL"
                                    Binding="{Binding Path=EKGCOL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGCOL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGBESCH"
                                    Binding="{Binding Path=EKGBESCH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGBESCH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGZUSTAND"
                                    Binding="{Binding Path=EKGZUSTAND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGZUSTAND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGGROE"
                                    Binding="{Binding Path=EKGGROE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGGROE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGAUFM"
                                    Binding="{Binding Path=EKGAUFM, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGAUFM}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGHUELTYP"
                                    Binding="{Binding Path=EKGHUELTYP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGHUELTYP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGSTAUSER"
                                    Binding="{Binding Path=EKGSTAUSER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGSTAUSER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EKGFILLER"
                                    Binding="{Binding Path=EKGFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EKGFILLER}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
